package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.bo.order.outbound.ExceptionOutboundQueryBo;
import com.cloudkinto.bo.order.outbound.NormalOrderOutboundQueryBo;
import com.cloudkinto.bo.order.outbound.TransferOrderOutboundQueryBo;
import com.cloudkinto.vo.common.ListPageStatusStaDto;
import com.cloudkinto.vo.order.outbound.ExceptionOutboundVo;
import com.cloudkinto.vo.order.outbound.NormalOutboundVo;
import com.cloudkinto.vo.order.outbound.OutboundProductVo;
import com.cloudkinto.vo.order.outbound.TransferOutboundVo;
import com.cloudkinto.entity.OrderOutboundDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 出库单 Mapper 接口
 * </p>
 *
 * @author long
 * @since 2024-11-21
 */
public interface OrderOutboundDao extends BaseMapper<OrderOutboundDo> {
    /**
     * 根据出库单id查出sku信息
     *
     * @param id 出库单id
     * @return sku信息
     */
    List<OutboundProductVo> getOutboundSkuInfoList(@Param("id") Long id);
    List<OutboundProductVo> batchGetOutboundSkuInfo(@Param("ids") List<Long> ids);

    /**
     * 获取一件代发出库单列表
     *
     * @param bo 一件代发请求
     * @return 一件代发出库单
     */
    List<NormalOutboundVo> getNormalListPage(@Param("bo") NormalOrderOutboundQueryBo bo);
    List<ListPageStatusStaDto> getNormalListPageStatusSta(@Param("bo") NormalOrderOutboundQueryBo bo);
    List<TransferOutboundVo> getTransferListPage(@Param("bo") TransferOrderOutboundQueryBo bo);

    List<ListPageStatusStaDto> getTransferListPageStatusSta(@Param("bo") TransferOrderOutboundQueryBo bo);

    List<ExceptionOutboundVo> getExceptionOutboundListPage(@Param("bo") ExceptionOutboundQueryBo bo);
}
